package com.heima.apis.wemedia;

import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.pojos.WmUser;
import org.apache.ibatis.annotations.Param;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;


@FeignClient(value = "leadnews-wemedia")
public interface IWemediaClient {

    @GetMapping("/api/v1/user/findUserByName/{name}")
    WmUser findUserByName(@PathVariable("name") String name);


    @PostMapping("/api/v1/user/save")
    public ResponseResult wmUserSave(@RequestBody WmUser wmUser);


    @GetMapping("/api/v1/channel/list")
    public ResponseResult getChannels();

}
